//
//  ViewController+Delegate.m
//  test
//
//  Created by 张征鸿 on 16/11/9.
//  Copyright © 2016年 张征鸿. All rights reserved.
//

#import "ViewController+Delegate.h"
#import <objc/runtime.h>
@implementation ViewController (Delegate)

- (void)setTitle:(NSString *)title
{
    objc_setAssociatedObject(self, _cmd, title, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (NSString *)title
{
    return objc_getAssociatedObject(self, _cmd);
}

@end
